Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

refactor(): delete a usless conditional sentence #14282

Closed

Conversation

CarlosMiguelCuevas
Copy link
Contributor

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

refactor

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

the same

Does this PR introduce a breaking change?

no

Please check if the PR fulfills these requirements

Other information:

delete a conditional sentences. it is marked with a TODO tag to be deleted.

delete a conditional sentences. it is marked with a TODO tag to be deleted.
@@ -348,8 +348,6 @@ var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
// may attempt more elements, but custom drivers are more particular
for (var i = drivers.length - 1; i >= 0; i--) {
var driverName = drivers[i];
if (!$injector.has(driverName)) continue; // TODO(matsko): remove this check
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matsko, any idea why you had marked this for removal ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this was only here for debugging. If the driverName refers to a driver that has not be registered with the injector then that is surely an error.

We register only two drivers in the ngAnimate module:

  • $$animateCssDriver
  • $$animateJsDriver

We do this from inside their respective providers, so it is not possible for our code to break this.

petebacondarwin pushed a commit that referenced this pull request Jun 10, 2016
Delete a conditional statement that appears to have only been for debugging.
It is marked with a TODO tag to be deleted.

Closes #14282
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants